package ru.poomsae.isap.Online

import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.ImageButton
import androidx.appcompat.app.AppCompatActivity
import com.example.isap_wtf.Model.ParametrsISAP
import ru.poomsae.isap.R

open class TkdHapki : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val decorView = window.decorView
        val uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN
        decorView.systemUiVisibility = uiOptions
        getSupportActionBar()?.hide()
        setContentView(R.layout.tkd_hapki)

        val tkd = findViewById<ImageButton>(R.id.tkd)
        tkd.setOnClickListener {
            ParametrsISAP.onlineConSys = 1
            val intent = Intent (this, MainActivity::class.java)
            startActivity(intent)
        }

        val hapki = findViewById<ImageButton>(R.id.hapki)
        hapki.setOnClickListener {
            ParametrsISAP.onlineConSys = 1
            val intent = Intent (this, SettingHapki::class.java)
            startActivity(intent)
        }
    }

}